package com.xcity.pomelo.response;

import java.util.Collections;
import java.util.List;

import com.xcity.game.activity2.circle.CircleRewardTemplate;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class ActivityCircleRollResponse extends Response{
	private int curScore;
	private int curFreeCount;
	public List<CircleRewardInfo> rewardList;
	
	public static class CircleRewardInfo{
		public int rewardType;
		public int rewardId;
		public String rewardIcon;
		public int rewardCount;
		public int rewardIndex;//从0开始
		public CircleRewardInfo(CircleRewardTemplate temp, int index){
			rewardIndex = index;
			rewardType = temp.getType();
			rewardId = temp.getRewardId();
			rewardCount = temp.getRewardCount();
			rewardIcon = temp.getRewardIcon();
		}
	}
	public ActivityCircleRollResponse(int serial) {
		super(serial);
		rewardList = Collections.emptyList();
	}

	public int getCurScore() {
		return curScore;
	}
	public void setCurScore(int curScore) {
		this.curScore = curScore;
	}
	public int getCurFreeCount() {
		return curFreeCount;
	}
	public void setCurFreeCount(int curFreeCount) {
		this.curFreeCount = curFreeCount;
	}
}
